package com.domain.DTO;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 大忽悠
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class FlightClassDto {
    private Integer id;
    /**
     * 起飞时间
     */
    @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private LocalDateTime departureTime;

    /**
     * 起飞机场
     */
    private String departureAirport;

    /**
     * 到达时间
     */
    @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private LocalDateTime arrivalTime;

    /**
     * 到达机场
     */
    private String arriveAirport;

    /**
     * 商务舱剩余座位
     */
    private Integer richLeftNumber;

    /**
     * 经济舱剩余座位
     */
    private Integer poorLeftNumber;

    /**
     * 商务舱价格
     */
    private Double richPrice;

    /**
     * 经济舱价格
     */
    private Double poorPrice;

    /**
     * 航班号
     */
    private Integer flightId;

    /**
     * 座位信息
     */
    private String seatInfo;
}
